package com.tentact.servlets;

import com.tentact.service.Chf_empService;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "Chf_updateStatusServlet", value = "/Chf_updateStatusServlet")
public class Chf_updateStatusServlet extends HttpServlet {
    Chf_empService c_es=new Chf_empService();
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        int employeeId=Integer.parseInt(request.getParameter("employeeId"));
        c_es.changeStatusById(3,employeeId);
        request.getRequestDispatcher("Chf_empServlet").forward(request,response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
